Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / androidApp / src / google / kotlin / org / meshtastic / app / GoogleMeshUtilApplication.kt

Displaying Raw • Download

androidApp/src/google/kotlin/org/meshtastic/app/GoogleMeshUtilApplication.kt 034005b4fa5c8b34761c4ed5d85f0d3ebd4345d8 (034005b4) Text, 1.97 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.app

Tff7b72import T7ee787androidx.appfunctions.AppFunctionConfiguration
Tff7b72import T7ee787org.koin.java.KoinJavaComponent.getKoin
Tff7b72import T7ee787org.meshtastic.app.ai.appfunctions.AppFunctionStateSync
Tff7b72import T7ee787org.meshtastic.app.ai.appfunctions.MeshtasticAppFunctions

T8b949e/**
* Google flavor Application subclass that configures App Functions.
*
* Registers a custom factory so the AppFunctions runtime can instantiate [MeshtasticAppFunctions] with its Koin-managed
* dependencies.
*/
Tff7b72class T56d364GoogleMeshUtilApplication Tb4b4b4:
Te6edf3MeshUtilApplicationTb4b4b4(Tb4b4b4)Tb4b4b4,
Te6edf3AppFunctionConfigurationTb4b4b4.Te6edf3Provider Tb4b4b4{

Tff7b72override Tff7b72fun Td2a8ffonCreateTb4b4b4(Tb4b4b4) Tb4b4b4{
Tff7b72superTb4b4b4.Te6edf3onCreateTb4b4b4(Tb4b4b4)
T8b949e// Start the AppFunctions enabled-state sync. Resolved here (after startKoin has bound
T8b949e// androidContext) rather than via createdAtStart so that Koin graphs built outside a
T8b949e// running app — verification tests, previews — stay lazily constructible.
Te6edf3getKoinTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3getTff7b72<Te6edf3AppFunctionStateSyncTff7b72>Tb4b4b4(Tb4b4b4)
Tb4b4b4}

Tff7b72override Tff7b72val Te6edf3appFunctionConfigurationTb4b4b4: Te6edf3AppFunctionConfiguration
Tff7b72getTb4b4b4(Tb4b4b4) Tff7b72=
Te6edf3AppFunctionConfigurationTb4b4b4.Te6edf3BuilderTb4b4b4(Tb4b4b4)
Tb4b4b4.Te6edf3addEnclosingClassFactoryTb4b4b4(Te6edf3MeshtasticAppFunctionsTff7b72::Te6edf3classTb4b4b4.Te6edf3javaTb4b4b4) Tb4b4b4{
Te6edf3getKoinTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3getTff7b72<Te6edf3MeshtasticAppFunctionsTff7b72>Tb4b4b4(Tb4b4b4)
Tb4b4b4}
Tb4b4b4.Te6edf3buildTb4b4b4(Tb4b4b4)
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s